package gaml.java.serializer.collection;

import gaml.error.GamlException;
import gaml.java.ClassSerializerStore;

import java.util.TreeSet;


/**
 * serialize TreeSet into empty-valued mapping node,
 * restore TreeeSet from empty-valued mapping node
 * @author shnireck
 *
 */
public class TreeSetSerializer extends SetSerializer <TreeSet <Object>> {

	public TreeSetSerializer (ClassSerializerStore store) { super (store); }

	@Override
	public TreeSet <Object> createObject () throws GamlException { return new TreeSet <Object> (); }

	@Override
	public Class <TreeSet <Object>> getObjectClass () { return (Class <TreeSet <Object>>) new TreeSet <Object> ().getClass (); }

}
